/* base.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

a {
  color: #409eff;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #66b1ff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

.hidden {
  display: none !important;
}

.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

/* main.css */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

.table th,
.table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e6e6e6;
}

.table th {
  font-weight: bold;
  background-color: #fafafa;
}

.pagination,
.pagination-box {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

.pagination a,
.pagination span {
  margin: 0 5px;
  padding: 0 15px;
  height: 30px;
  line-height: 30px;
  border: 1px solid #e2e2e2;
  background-color: #fff;
  color: #333;
  font-size: 14px;
  border-radius: 2px;
  text-decoration: none;
  display: inline-block;
}

.pagination .pagination-curr {
  background-color: #A6CE39;
  color: #fff;
  border-color: #A6CE39;
}

.pagination .pagination-curr .pagination-em {
  background-color: #A6CE39;
  border-radius: 2px;
}

.pagination .pagination-curr em {
  color: #fff;
}

.pagination a:hover {
  color: #A6CE39;
  border-color: #A6CE39;
}

.pagination .disabled,
.pagination .disabled:hover {
  color: #d2d2d2;
  cursor: not-allowed;
  border-color: #e2e2e2;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.row > * {
  padding: 0 15px;
}

.col-md-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 15px;
}

.col-md-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
  padding: 0 15px;
}

.col-md-3 {
  flex: 0 0 25%;
  max-width: 25%;
  padding: 0 15px;
}

.row-space-30 {
  margin: 0 -15px;
}

.row-space-30 > * {
  padding: 0 15px;
  margin-bottom: 30px;
}

@media screen and (max-width: 768px) {
  .col-md-6,
  .col-md-4,
  .col-md-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.news-banner {
  height: 800px;
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
}

.news-banner .banner-carousel {
  width: 100%;
  height: 100%;
  position: relative;
}

.news-banner .banner-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.news-banner .banner-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.news-banner .banner-item.active {
  opacity: 1;
  z-index: 1;
}

.news-banner .banner-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-banner .banner-item a {
  display: block;
  width: 100%;
  height: 100%;
}

.news-banner .banner-single {
  width: 100%;
  height: 100%;
}

.news-banner .banner-single img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-banner .banner-single a {
  display: block;
  width: 100%;
  height: 100%;
}

.news-banner .banner-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}

.news-banner .banner-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
}

.news-banner .banner-indicator.active {
  background: #fff;
  width: 24px;
  border-radius: 5px;
}

.news-banner .banner-indicator:hover {
  background: rgba(255, 255, 255, 0.8);
}

.news-banner .banner-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  z-index: 10;
  pointer-events: none;
}

.news-banner .banner-prev,
.news-banner .banner-next {
  position: absolute;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 24px;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  border-radius: 50%;
  pointer-events: all;
  transition: all 0.3s;
  user-select: none;
}

.news-banner .banner-prev:hover,
.news-banner .banner-next:hover {
  background: rgba(0, 0, 0, 0.6);
}

.news-banner .banner-prev {
  left: 20px;
}

.news-banner .banner-next {
  right: 20px;
}

.news-banner .banner-loading,
.news-banner .banner-empty,
.news-banner .banner-error {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
}

.sub-nav {
  background-color: #fff;
  border-bottom: 1px solid #eee;
  text-align: center;
}

.sub-nav.fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sub-nav .layui-tab {
  margin: 0;
  display: inline-block;
}

.sub-nav .layui-tab-title {
  height: 50px;
  border: none;
}

.sub-nav .layui-tab-title li {
  line-height: 50px;
  padding: 0 50px;
  position: relative;
  font-family: Microsoft YaHei, Microsoft YaHei;
  font-weight: 400;
  font-size: 16px;
}

.sub-nav .layui-tab-title .layui-this {
  color: #fff;
  background-color: #A6CE39;
}

.sub-nav .layui-tab-title .layui-this:after {
  display: none;
}

.sub-nav .tab {
  margin: 0;
  display: inline-block;
}

.sub-nav .tab-title {
  height: 50px;
  border: none;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.sub-nav .tab-title li {
  line-height: 50px;
  padding: 0 50px;
  position: relative;
  font-family: Microsoft YaHei, 微软雅黑, Microsoft YaHei, 微软雅黑;
  font-weight: 400;
  font-size: 16px;
  transition: font-weight 0.3s ease;
  cursor: pointer;
}

.sub-nav .tab-title li:hover {
  font-weight: bold;
}

.sub-nav .tab-title li.active {
  color: #fff;
  background-color: #A6CE39;
}

.sub-nav .tab-title li.active:after {
  display: none;
}

.section {
  padding: 40px 0;
  min-height: 500px;
  width: 100%;
  background-color: #fff;
  position: relative;
}

.section:nth-child(even) {
  background-color: #fafafa;
}

.section:first-child {
  padding-top: 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.section-title-wrap {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.section-title {
  display: inline-block;
  margin: 0;
  font-weight: normal;
  font-family: Microsoft YaHei, 微软雅黑;
  font-size: 36px;
  color: #333333;
}

.section-subtitle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.section-subtitle {
  margin: 0 15px;
  white-space: nowrap;
  font-family: Microsoft YaHei, 微软雅黑;
  font-weight: normal;
  font-size: 24px;
  color: #999999;
}

.decor-img {
  height: auto;
  width: 100%;
  overflow: hidden;
}

@media screen and (max-width: 768px) {
  .news-banner {
    height: 200px;
  }

  .sub-nav .layui-tab-title li,
  .sub-nav .tab-title li {
    padding: 0 15px;
  }

  .nav-menu .nav-item {
    display: none;
  }

  .nav-menu .nav-item.user-icons {
    display: block;
  }

  .section-header {
    margin-bottom: 20px;
  }
  
  .section-title {
    font-size: 20px;
  }
  
  .section-subtitle {
    font-size: 12px;
  }

  .section-subtitle-wrap:before,
  .section-subtitle-wrap:after {
    width: 35px;
  }

  .decor-img {
    width: 100%;
    height: auto;
  }
}

.news-main {
  background: #FFFFFF;
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: 0px 0px 12px 1px rgba(0,0,0,0.08);
}

.news-main:hover {
  box-shadow: 0px 0px 12px 1px rgba(0,0,0,0.15);
}

.news-img {
  width: 100%;
  height: 210px;
  overflow: hidden;
  border-radius: 4px;
}

.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.news-img:hover img {
  transform: scale(1.05);
}

.news-content {
  padding: 20px;
}

.news-content h3 {
  font-family: Microsoft YaHei, 微软雅黑, Microsoft YaHei, 微软雅黑;
  font-weight: 400;
  font-size: 20px;
  color: #000000;
  margin: 10px 0 0 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-content p {
  font-family: Microsoft YaHei, 微软雅黑, Microsoft YaHei, 微软雅黑;
  font-weight: 400;
  font-size: 16px;
  color: #666666;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-more {
  color: white;
  font-size: 14px;
  background-color: #A6CE39;
  padding: 10px 20px;
  border-radius: 4px;
  line-height: 1;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s;
}

.news-more:hover {
  background-color: #95b933;
}

.news-list .news-item {
  display: flex;
  align-items: flex-start;
  padding-bottom: 52px;
}

.news-date {
  min-width: 116px;
  height: 116px;
  background: url('res/3.png') no-repeat;
  background-size: contain;
  text-align: center;
  padding-top: 15px;
  margin-right: 15px;
}

.news-date strong {
  display: block;
  font-family: Microsoft YaHei, 微软雅黑, Microsoft YaHei, 微软雅黑;
  font-weight: 400;
  font-size: 42px;
  color: #FFFFFF;
}

.news-date span {
  font-family: Microsoft YaHei, 微软雅黑, Microsoft YaHei, 微软雅黑;
  font-weight: 400;
  font-size: 16px;
  color: #FFFFFF;
}

.news-info {
  flex: 1;
  /* flex 子项默认 min-width: auto，会被内部不可换行的内容撑开；
     必须显式设 0，子标题的 white-space: nowrap + ellipsis 才会触发。 */
  min-width: 0;
}

.news-info h4 {
  margin-bottom: 8px;
  line-height: 1.4;
  /* 标题单行截断，超出省略号 */
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: Microsoft YaHei, 微软雅黑, Microsoft YaHei, 微软雅黑;
  font-weight: 400;
  font-size: 20px;
  color: #000000;
}

/* 标题里的 <a> 默认会被全局 a{color:#409eff} 覆盖成蓝色，且点击后浏览器
   还会用 :visited 紫色。这里强制让所有状态都跟随父 h4 的黑色，仅保留
   hover 时颜色变化作为交互反馈。
   同时 display:block + ellipsis 三件套确保 inline <a> 也能被截断。 */
.news-info h4 a,
.news-info h4 a:link,
.news-info h4 a:visited,
.news-info h4 a:active {
  color: inherit;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.news-info h4 a:hover {
  color: #409eff;
}

.news-info p {
  line-height: 1.6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-family: Microsoft YaHei, 微软雅黑, Microsoft YaHei, 微软雅黑;
  font-weight: 400;
  font-size: 14px;
  color: #333333;
  text-overflow: ellipsis;
}

.news-more-link {
  text-align: right;
  margin-top: 15px;
}

.news-more-link a {
  font-family: Microsoft YaHei, 微软雅黑, Microsoft YaHei, 微软雅黑;
  font-weight: 400;
  font-size: 16px;
  color: #333333;
  text-decoration: none;
  transition: color 0.3s;
}

.news-more-link a:hover {
  color: #A6CE39;
}

.news-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 15px;
}

.news-time {
  color: #999;
  font-size: 14px;
  line-height: 1;
}

#promo-list > .layui-col-md3 {
  min-width: 0;
}

.promo-item {
  background: #FFFFFF;
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s;
  height: 100%;
  box-shadow: 0px 0px 12px 1px rgba(0,0,0,0.12);
  min-width: 0;
}

.promo-item:hover {
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  transform: translateY(-5px);
}

.promo-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.promo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.promo-item:hover .promo-img img {
  transform: scale(1.05);
}

.promo-info {
  padding: 20px 24px;
  min-width: 0;
  text-align: center;
}

.promo-info h3 {
  font-family: Microsoft YaHei, 微软雅黑, Microsoft YaHei, 微软雅黑;
  font-weight: 400;
  font-size: 18px;
  color: #000000;
  margin: 0 0 10px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}
.promo-info h3 a {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: inherit;
  text-decoration: none;
}
.promo-info h3 a:hover {
  color: #A6CE39;
}

.promo-date {
  margin-bottom: 10px;
  font-family: Microsoft YaHei, 微软雅黑, Microsoft YaHei, 微软雅黑;
  font-weight: 400;
  font-size: 14px;
  color: #999999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.promo-time {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  font-family: Microsoft YaHei, 微软雅黑, Microsoft YaHei, 微软雅黑;
  font-weight: 400;
  font-size: 14px;
  color: #666666;
  min-width: 0;
}
.promo-time > span {
  white-space: nowrap;
  flex-shrink: 0;
}
.promo-time .time-boxes {
  flex-shrink: 0;
}

.time-boxes {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.time-boxes span {
  display: inline-block;
  min-width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  color: #333;
}

@media screen and (max-width: 768px) {
  .promo-img {
    height: 150px;
  }
  
  .promo-info {
    padding: 15px;
  }
  
  .promo-info h3 {
    font-size: 16px;
  }
  
  .time-boxes span {
    min-width: 20px;
    height: 20px;
    line-height: 20px;
    font-size: 12px;
  }
}

.promo-status {
  font-family: Microsoft YaHei, 微软雅黑, Microsoft YaHei, 微软雅黑;
  font-weight: 400;
  font-size: 14px;
}

.promo-status.ended {
  color: #FF0000;
}

.industry-list {
  margin-bottom: 20px;
}

.industry-item {
  display: flex;
  align-items: stretch;
  background: #FFFFFF;
  padding: 15px 20px 15px 20px;
  margin-bottom: 15px;
  border-radius: 4px;
  transition: all 0.3s;
}

.industry-item:last-child {
  margin-bottom: 0;
}

.industry-item:hover {
  box-shadow: 0px 0px 12px 1px rgba(0,0,0,0.12);
  transform: translateX(5px);
}

.industry-date {
  min-width: 116px;
  width: 116px;
  height: 116px;
  background: url('res/3.png') no-repeat center center;
  background-size: contain;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-right: 20px;
  flex-shrink: 0;
}

.industry-date strong {
  display: block;
  font-family: Microsoft YaHei, 微软雅黑, Microsoft YaHei, 微软雅黑;
  font-weight: 400;
  font-size: 36px;
  color: #FFFFFF;
  line-height: 1;
  margin-bottom: 4px;
}

.industry-date span {
  font-family: Microsoft YaHei, 微软雅黑, Microsoft YaHei, 微软雅黑;
  font-weight: 400;
  font-size: 14px;
  color: #FFFFFF;
}

.industry-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.industry-info h3 {
  margin-bottom: 10px;
  /* 标题单行截断，避免和摘要互相挤占空间。 */
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: Microsoft YaHei, 微软雅黑, Microsoft YaHei, 微软雅黑;
  font-weight: 400;
  font-size: 20px;
  color: #000000;
}

/* 同上：标题链接默认黑色（含已访问）+ display:block 才能在内嵌时正常 ellipsis */
.industry-info h3 a,
.industry-info h3 a:link,
.industry-info h3 a:visited,
.industry-info h3 a:active {
  color: inherit;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.industry-info h3 a:hover {
  color: #409eff;
}

.industry-info p {
  line-height: 1.6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: Microsoft YaHei, 微软雅黑, Microsoft YaHei, 微软雅黑;
  font-weight: 400;
  font-size: 14px;
  color: #333333;
}

@media screen and (max-width: 768px) {
  .industry-item {
    padding: 12px 15px;
    margin-bottom: 12px;
  }

  .industry-date {
    min-width: 80px;
    width: 80px;
    height: 80px;
    margin-right: 15px;
  }

  .industry-date strong {
    font-size: 24px;
  }

  .industry-date span {
    font-size: 12px;
  }

  .industry-info h3 {
    font-size: 16px;
  }

  .industry-info p {
    font-size: 12px;
  }
}

.tech-item {
  background: #F5F5F5;
  border-radius: 4px;
  padding: 15px;
  transition: all 0.3s;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.tech-item:hover {
  transform: translateY(-5px);
  box-shadow: 0px 0px 12px 1px rgba(0,0,0,0.12);
}

.tech-tree {
  width: 200px;
  flex-shrink: 0;
}

.tech-tree img {
  width: 100%;
  height: auto;
}

.tech-info {
  flex: 1;
}

.tech-info h3 {
  margin-bottom: 10px;
  font-family: Microsoft YaHei, 微软雅黑, Microsoft YaHei, 微软雅黑;
  font-weight: bold;
  font-size: 18px;
  color: #333333;
}

/* 同上：技术资料标题链接也强制黑色，含 :visited。 */
.tech-info h3 a,
.tech-info h3 a:link,
.tech-info h3 a:visited,
.tech-info h3 a:active {
  color: inherit;
}
.tech-info h3 a:hover {
  color: #409eff;
}

.tech-date {
  font-family: Microsoft YaHei, 微软雅黑, Microsoft YaHei, 微软雅黑;
  font-weight: 400;
  font-size: 14px;
  color: #999999;
}

@media screen and (max-width: 768px) {
  .tech-item {
    padding: 15px;
    margin-bottom: 15px;
  }

  .tech-tree {
    width: 150px;
  }

  .tech-info h3 {
    font-size: 16px;
  }
}

.partner-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 20px 0;
}

.partner-pagination button {
  padding: 8px 20px;
  background-color: #A6CE39;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.partner-pagination button:hover:not(:disabled) {
  background-color: #95b933;
}

.partner-pagination button:disabled {
  background-color: #d2d2d2;
  cursor: not-allowed;
  opacity: 0.6;
}

.partner-pagination span {
  font-size: 14px;
  color: #333;
}

.partner-container {
  position: relative;
  padding: 20px 0 40px;
  height: 320px;
  overflow: hidden;
}

.partner-pages {
  position: relative;
  height: 260px;
  width: 100%;
}

.partner-grid {
  display: none;
  grid-template-columns: repeat(7, 118px);
  grid-template-rows: repeat(2, 118px);
  gap: 15px;
  justify-content: center;
  align-content: center;
  height: 100%;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  animation: partnerFadeIn 0.4s ease;
}

.partner-grid.active {
  display: grid;
}

@keyframes partnerFadeIn {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

.partner-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.partner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d2d2d2;
  cursor: pointer;
  transition: background 0.3s;
}

.partner-dot.active {
  background: #A6CE39;
}

.partner-logo {
  width: 118px;
  height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.partner-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
}

.nav-btn {
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  font-size: 20px;
  transition: all 0.3s;
}

.nav-btn:hover {
  background: rgba(0, 0, 0, 0.5);
}

@media screen and (max-width: 768px) {
  .partner-container {
    height: 280px;
  }

  .partner-pages {
    height: 220px;
  }

  .partner-grid {
    grid-template-columns: repeat(4, 60px);
    grid-template-rows: repeat(4, 60px);
    gap: 8px;
  }
  
  .partner-logo {
    width: 60px;
    height: 60px;
  }

  .nav-btn {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }
}

@media screen and (max-width: 480px) {
  .partner-grid {
    grid-template-columns: repeat(4, 45px);
    grid-template-rows: repeat(4, 45px);
    gap: 5px;
  }
  
  .partner-logo {
    width: 45px;
    height: 45px;
  }
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.tool-item {
  background: #FFFFFF;
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: 0px 0px 12px 1px rgba(0,0,0,0.08);
}

.tool-item:hover {
  transform: translateY(-5px);
  box-shadow: 0px 0px 12px 1px rgba(0,0,0,0.15);
}

.tool-img {
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.tool-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.tool-item:hover .tool-img img {
  transform: scale(1.05);
}

.tool-info {
  padding: 20px;
}

.tool-info h3 {
  font-family: Microsoft YaHei, 微软雅黑;
  font-weight: bold;
  font-size: 18px;
  color: #333333;
  margin-bottom: 10px;
}

.tool-info p {
  font-family: Microsoft YaHei, 微软雅黑;
  font-size: 14px;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 15px;
  height: 44px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tool-btn {
  display: inline-block;
  padding: 8px 20px;
  background: #A6CE39;
  color: #FFFFFF;
  font-size: 14px;
  transition: all 0.3s;
  border-radius: 20px;
}

.tool-btn:hover {
  background: #95b933;
  color: #FFFFFF;
}

@media screen and (max-width: 768px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .tool-img {
    height: 120px;
  }

  .tool-info {
    padding: 15px;
  }

  .tool-info h3 {
    font-size: 16px;
  }

  .tool-info p {
    font-size: 12px;
    height: 38px;
  }

  .tool-btn {
    padding: 6px 15px;
    font-size: 12px;
  }
}

.ad-banner-section {
  width: 100%;
  overflow: hidden;
}

.ad-banner-section .ad-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.ad-banner-section .ad-banner-item {
  display: block;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.3s ease;
}

.ad-banner-section .ad-banner-item:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.ad-banner-section .ad-banner-item img {
  width: 100%;
  height: auto;
  display: block;
}

.ad-banner-section .ad-banner-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 24px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  color: #fff;
  font-size: 16px;
  line-height: 1.5;
}

.ad-banner-section .ad-banner-placeholder {
  width: 100%;
  height: 120px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 2px;
}

.ad-banner-carousel {
  position: relative;
}

.ad-banner-carousel .ad-banner-item {
  display: none;
}

.ad-banner-carousel .ad-banner-item.active {
  display: block;
}

.ad-banner-carousel .ad-banner-dots {
  text-align: center;
  margin-top: 12px;
}

.ad-banner-carousel .ad-banner-dots span {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  margin: 0 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.ad-banner-carousel .ad-banner-dots span.active {
  background: #55a7eb;
}

.section-ad-mid {
  padding: 30px 0;
}

.newslist-ad-top {
  margin-bottom: 15px;
}

.newslist-ad-top .ad-banner-placeholder {
  height: 90px;
  font-size: 18px;
}

.article-ad-bottom {
  margin: 30px 0 10px;
  padding-top: 20px;
  border-top: 1px dashed #e6e6e6;
}

.article-ad-bottom .ad-label {
  font-size: 12px;
  color: #bbb;
  margin-bottom: 8px;
}

.article-ad-bottom .ad-banner-placeholder {
  height: 100px;
  font-size: 16px;
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.footer-ad-banner {
  padding: 30px 0;
}

.footer-ad-banner .ad-banner-placeholder {
  height: 100px;
  font-size: 18px;
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

@media screen and (max-width: 768px) {
  .ad-banner-section .ad-banner-text {
    font-size: 13px;
    padding: 10px 16px;
  }

  .ad-banner-section .ad-banner-placeholder {
    height: 80px;
    font-size: 14px;
  }

  .section-ad-mid {
    padding: 15px 0;
  }

  .footer-ad-banner {
    padding: 20px 0;
  }
}

/* index.css - nav */
.top-nav {
  background-color: #F8F8F8;
  width: 100%;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
}

.logo {
  height: 50px;
}

.logo img {
  height: 100%;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-menu .layui-nav {
  background-color: transparent;
  padding: 0;
  /* 强制单行：菜单项再多也由父容器/里面 padding 控制，不允许换行掉到第二行；
     真的超出就让最末几个被电话/登录块挤不到，而不是断行。 */
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-menu .layui-nav .layui-nav-item {
  line-height: 50px;
  position: relative;
}

.nav-menu .layui-nav .layui-nav-item a {
  /* 之前 padding: 5px 20px 一项就 40px 横向占用，8 个一级菜单 + logo + 电话
     + 登录/注册超 1200px 容器，导致「联系我们」换到第二行。收紧到 10px。 */
  padding: 5px 10px;
  font-family: 'Open Sans', Microsoft YaHei, sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #333333;
  transition: font-weight 0.3s ease, color 0.3s ease;
  position: relative;
  display: block;
  text-decoration: none;
  white-space: nowrap;
}

.nav-menu .layui-nav .layui-nav-item:hover > a {
  font-weight: 700;
  color: #A6CE39;
}

.nav-menu .layui-nav .layui-nav-item:hover > a::after {
  content: '';
  position: absolute;
  left: 10px;
  bottom: 0;
  width: calc(100% - 20px);
  height: 3px;
  background-color: #A6CE39;
  transition: all 0.3s ease;
}

.nav-menu .layui-nav .layui-nav-item.layui-this:not(:hover) > a {
  color: #A6CE39;
  font-weight: 700;
}

.nav-menu .layui-nav .layui-nav-item.layui-this:not(:hover)::before {
  content: '';
  position: absolute;
  left: 10px;
  bottom: 0;
  width: calc(100% - 20px);
  height: 3px;
  background-color: #A6CE39;
}

.nav-menu .layui-nav .layui-nav-item.layui-this:hover::before {
  display: none;
}

.nav-menu .layui-nav .layui-nav-item.layui-this:after {
  display: none;
}

.nav-menu .layui-nav .layui-nav-item .layui-nav-child {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 150px;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  padding: 5px 0;
  z-index: 1000;
  display: none;
  margin-top: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.nav-menu .layui-nav .layui-nav-item:hover .layui-nav-child {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu .layui-nav .layui-nav-item:hover .layui-nav-child,
.nav-menu .layui-nav .layui-nav-item .layui-nav-child:hover {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu .layui-nav .layui-nav-item .layui-nav-child dd {
  margin: 0;
  padding: 0;
}

.nav-menu .layui-nav .layui-nav-item .layui-nav-child dd a {
  padding: 10px 20px;
  font-weight: 400;
  color: #333333;
  display: block;
  transition: all 0.3s ease;
}

.nav-menu .layui-nav .layui-nav-item .layui-nav-child dd:hover a {
  background-color: #f5f5f5;
  font-weight: bold;
  color: #A6CE39;
}

.nav-menu .layui-nav .layui-nav-item .layui-nav-child dd a::after {
  display: none;
}

.nav-menu .layui-nav .layui-nav-item.user-icons {
  margin-left: 20px;
}

.nav-menu .layui-nav .layui-nav-item.user-icons a {
  padding: 0 10px;
}

.nav-menu .layui-nav .layui-nav-item.user-icons:hover > a::after {
  display: none;
}

.footer {
  background: #404553;
  padding: 36px 0 20px 0;
  color: #fff;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section h3 {
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 15px;
  font-family: Microsoft YaHei;
  font-weight: bold;
  font-size: 14px;
  color: #F2F2F2;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: rgba(255, 255, 255, 0.7);
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section ul li a {
  font-family: Microsoft YaHei;
  font-weight: 400;
  font-size: 14px;
  color: #F2F2F2;
  transition: color 0.3s;
}

.footer-section.contact p {
  font-family: Microsoft YaHei;
  font-weight: 400;
  font-size: 14px;
  color: #F2F2F2;
  line-height: 1.8;
  margin-bottom: 10px;
}

.qr-codes {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.qr-code {
  text-align: left;
}

.qr-code img {
  width: 100px;
  height: 100px;
}

.footer-links {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.footer-links a {
  margin-right: 20px;
  font-family: Microsoft YaHei;
  font-weight: 400;
  font-size: 14px;
  color: #F2F2F2;
}

.social-icons {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.social-icon-wrapper {
  position: relative;
  margin: 0 10px;
}

.social-icons img {
  width: 30px;
  height: 30px;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.social-icons img:hover {
  opacity: 1;
}

.qr-popup {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  text-align: center;
  color: black;
  width: 110px;
  z-index: 1000;
}

.qr-popup::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -10px;
  border-width: 10px;
  border-style: solid;
  border-color: white transparent transparent transparent;
}

.qr-popup img {
  width: 100px;
  height: 100px;
  margin-bottom: 5px;
}

.qr-popup span {
  font-size: 12px;
  color: #333;
}

.footer-divider {
  height: 1px;
  background-color: #F2F2F2;
  margin: 20px 0;
  opacity: 0.1;
}

.footer .layui-text {
  font-family: Microsoft YaHei;
  font-weight: 400;
  font-size: 14px;
  color: #F2F2F2;
  text-align: center;
}

.beian-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-left: 5px;
  display: inline;
}

@media screen and (max-width: 768px) {
  .footer {
    padding: 30px 0;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .footer-section.contact {
    grid-column: span 2;
  }

  .footer-links, .social-icons {
    flex-wrap: wrap;
    margin-bottom: 15px;
  }

  .footer-links a {
    margin-right: 10px;
  }

  .social-icon-wrapper {
    margin: 0 5px;
  }

  .qr-code img {
    width: 80px;
    height: 80px;
  }

  .footer-section h3::after {
    width: 25px;
  }
}

.footer-bottom {
  padding: 20px 0;
}

.bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bottom-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.policy-links {
  display: flex;
  gap: 20px;
}

.policy-links a {
  font-family: Microsoft YaHei;
  font-size: 14px;
  color: #F2F2F2;
  text-decoration: none;
}

.copyright {
  font-family: Microsoft YaHei;
  font-size: 14px;
  color: #F2F2F2;
  opacity: 0.7;
}

.copyright p {
  margin: 5px 0;
}

.bottom-right {
  display: flex;
  align-items: center;
}

.social-icons {
  display: flex;
  margin: 0;
}

@media screen and (max-width: 768px) {
  .bottom-content {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
  }

  .bottom-left {
    align-items: center;
  }

  .policy-links {
    justify-content: center;
  }

  .social-icons {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* carousel.css */
.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-container {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-item {
  min-width: 100%;
  flex-shrink: 0;
}

.carousel-item img {
  width: 100%;
  height: auto;
  display: block;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(0, 0, 0, 0.7);
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s;
}

.carousel-indicator.active {
  background: #fff;
}
